{{- range $instance_name, $instance := .Values.keepalived.instances }}
---
apiVersion: v1
kind: Secret
metadata:
  name: keepalived-instance-secret-{{ $instance_name }}
  namespace: d8-{{ $.Chart.Name }}
  {{- include "helm_lib_module_labels" (list $ (dict "app" "keepalived" "keepalived-instance" (printf "%s" $instance_name))) | nindent 2 }}
type: Opaque
data:
  authPass: {{ $instance.authPass | b64enc }}
{{- end }}
